import { createRouter,createWebHistory } from "vue-router";



let router =createRouter({



  history :createWebHistory(),



      routes:[
        {
          path:'',
        redirect:'/demo',
        }

        ,
        {
          path:'/demo',
          component:()=>import('../view/demo.vue')

        },{

          path:'/demo2',
          component:()=>import('../view/demo2.vue')

        }


      ]





})

export default router